/*
 * <one line to give the program's name and a brief idea of what it does.>
 * Copyright (C) 2019
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef SHIPAI_H
#define SHIPAI_H

#include "ship.hpp"

/**
 * \class ShipAI
 * This class describe ai ship, his prop.
 */
class ShipAI : public Ship {
public:
	ShipAI(const uint16_t level);
	ShipAI(const ShipAI & other) = delete;
	virtual ~ShipAI() {}

	void reset() override;
	double getDamage() const override;
	double getHP() const override;
	double getShield() const override;
	double getShieldAbsorption() const override;
	uint32_t getSpeed() const override;

	/**
	 * Change ai ship level
	 * \param[in] level new ai level
	 */
	void setLevel(const uint16_t level) {
		m_Level = level;
	}

	/**
	 * For destroy ai ship player get reward(P-Core, Ultium, AP, I-Matter, etc)
	 * \param[in] level ai ship level
	 * \return resources gained for destroy ai ship
	 */
	static resource reward(const uint16_t level);

	/**
	 * For destroy ai ship player get reward(P-Core, Ultium, AP, I-Matter, etc)
	 * \param[in] level ai ship level
	 * \return Total resources gained for destroy ai ship from 1 to current
	 */
	static resource rewardTotal(const uint16_t level);

private:
	uint16_t m_Level = 1;
	double m_HP = 0;
	double m_Shield = 0;
	double m_Speed = 0;
	double m_Weapon = 0;
};

#endif // SHIPAI_H
